<template>
  <select v-model="value">
    <option v-for="item in options" :key="item" :value="item.value" :disabled="readonly">
      {{ item.text }}
    </option>
  </select>
</template>
<script>
export default {
  name: 'BoolSelect',
  props: {
    realonly: {
      type: Boolean,
      default: true
    },
    placeholder: {
      type: Boolean,
      default: true
    }
  },
  data() {
    return {
      options: [{ value: null, text: '---请选择---' }, { value: true, text: '是' }, { value: false, text: '否' }],
      value: this.placeholder
    }
  }
}
</script>
